package com.pray.praymall.auth.feign;

import com.pray.common.utils.R;
import com.pray.praymall.auth.vo.UserLoginVo;
import com.pray.praymall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * do something
 *
 * @author 魂悸魄
 * @date 2020/9/21 22:21
 */
@FeignClient("praymall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);
}
